package work.services;

import java.util.Date;

public class AccessLogLine {

	private String ipAddress;
	private Date time;
	private String httpMethod;
	private String url;
	private String parameters;
	private String protocol;
	private Integer status;
	private Integer contentSize;
	public String getIpAddress() {
		return ipAddress;
	}
	public void setIpAddress(String ipAddress) {
		this.ipAddress = ipAddress;
	}
	public Date getTime() {
		return time;
	}
	public void setTime(Date time) {
		this.time = time;
	}
	public String getHttpMethod() {
		return httpMethod;
	}
	public void setHttpMethod(String httpMethod) {
		this.httpMethod = httpMethod;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getParameters() {
		return parameters;
	}
	public void setParameters(String parameters) {
		this.parameters = parameters;
	}
	public String getProtocol() {
		return protocol;
	}
	public void setProtocol(String protocol) {
		this.protocol = protocol;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public Integer getContentSize() {
		return contentSize;
	}
	public void setContentSize(Integer contentSize) {
		this.contentSize = contentSize;
	}
	public AccessLogLine(String ipAddress, Date time, String httpMethod, String url, String parameters, String protocol, Integer status, Integer contentSize) {
		super();
		this.ipAddress = ipAddress;
		this.time = time;
		this.httpMethod = httpMethod;
		this.url = url;
		this.parameters = parameters;
		this.protocol = protocol;
		this.status = status;
		this.contentSize = contentSize;
	}

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();

		sb.append("AccessLogLine(");

		sb.append("ipAddress = ").append(ipAddress).append(", ");
		sb.append("time = ").append(time).append(", ");
		sb.append("httpMethod = ").append(httpMethod).append(", ");
		sb.append("url = ").append(url).append(", ");
		sb.append("parameters = ").append(parameters).append(", ");
		sb.append("protocol = ").append(protocol).append(", ");
		sb.append("status = ").append(status).append(", ");
		sb.append("contentSize = ").append(contentSize);

		sb.append(")");

		return sb.toString();
	}


}
